using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAOLayer;
using DTOLayer;

namespace BUSLayer
{
    public class DocGiaBUS:AbstractBus
    {
        public int TestExisted(DocGiaDTO dto)
        {
            DocGiaDAO dao=new DocGiaDAO();
            return dao.TestExisted(dto);
        }
         public int InsertDocGia( DocGiaDTO dto)
         {
             DocGiaDAO dao=new DocGiaDAO();
             return dao.InsertDocGia(dto);
         }
         public int DeleteDocGia(int madocgia)
         {
             DocGiaDAO dao = new DocGiaDAO();
             return dao.DeleteDocGia(madocgia);
         }
         public int UpdateDocGia(DocGiaDTO dto)
         {
             DocGiaDAO dao = new DocGiaDAO();
             return dao.UpdateDocGia(dto);
         }
        public DataTable LayDanhSach()
        {
            DocGiaDAO dao = new DocGiaDAO();
            return dao.LayDanhSach();
        }
    }
}
